package com.sharefang.aproject.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Administrator on 2016/8/16.
 */

public class NppBean implements Parcelable {

    @Override
    public String toString() {
        return "NppBean{" +

                "createTime = " + createTime +
                ", actionList = " + actionList +
                ", deleted = " + deleted +
                ", backgroundUrl =" + backgroundUrl +
                ", pptId = " + pptId +
                ", nppId = " + nppId +
                ", audioSize = " + audioSize +
                ", playNum = " + playNum +
                ", htmlSize = " + htmlSize +
                ", audioUrl = " + audioUrl +
                ", shareNum = " + shareNum +
                ", htmlUrl = " + htmlUrl +
                ", title = " + title +
                ", description = " + description +
                ", userId = " + userId +
                ", firstClassCategory = " + firstClassCategory +
                ", pageAmount = " + pageAmount +
                ", audioSizeMp3 = " + audioSizeMp3 +
                ", uploadTime = " + uploadTime +
                ", imageAmount = " + imageAmount +
                ", signature = " + signature +
                ", audioUrlMp3 = " + audioUrlMp3 +
                ", privateKey = " + privateKey +
                ", albumId = " + albumId +
                ", nickname = " + nickname +
                ", thumbLarge = " + thumbLarge +
                ", discount = " + discount +
                ", commentNum = " + commentNum +
                ", thumbMedium = " + thumbMedium +
                ", headerUrl = " + headerUrl +
                ", price = " + price +
                ", likeNum = " + likeNum +
                ", isLike = " + createTime +
                ", audioLength = " + audioLength +
                ", thumb = " + thumb +
                ", favoriteNum = " + favoriteNum +
                "}";

    }

    private long createTime;

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    public long getCreateTime() {
        return this.createTime;
    }

    private String actionList;

    private boolean deleted;

    public void setActionList(String actionList) {
        this.actionList = actionList;
    }

    public String getActionList() {
        return this.actionList;
    }

    public void setDeleted(boolean deleted) {
        this.deleted = deleted;
    }

    public boolean getDeleted() {
        return this.deleted;
    }

    private String backgroundUrl;

    private int pptId;

    private int nppId;

    private int audioSize;

    private int playNum;

    private int htmlSize;

    private String audioUrl;

    private int shareNum;

    private String htmlUrl;

    private String title;

    private String description;

    private int userId;

    private String firstClassCategory;

    private int pageAmount;

    private int audioSizeMp3;

    private long uploadTime;

    private int imageAmount;

    private String signature;

    private String audioUrlMp3;

    private String privateKey;

    private int albumId;

    private String nickname;

    private String thumbLarge;

    private int discount;

    private int commentNum;

    private String thumbMedium;

    private String headerUrl;

    private int price;

    private int likeNum;

    private boolean isLike;

    private int audioLength;

    private String thumb;

    private int favoriteNum;

    protected NppBean(Parcel in) {
        createTime = in.readLong();
        actionList = in.readString();
        deleted = in.readByte() != 0;
        backgroundUrl = in.readString();
        pptId = in.readInt();
        nppId = in.readInt();
        audioSize = in.readInt();
        playNum = in.readInt();
        htmlSize = in.readInt();
        audioUrl = in.readString();
        shareNum = in.readInt();
        htmlUrl = in.readString();
        title = in.readString();
        description = in.readString();
        userId = in.readInt();
        firstClassCategory = in.readString();
        pageAmount = in.readInt();
        audioSizeMp3 = in.readInt();
        uploadTime = in.readLong();
        imageAmount = in.readInt();
        signature = in.readString();
        audioUrlMp3 = in.readString();
        privateKey = in.readString();
        albumId = in.readInt();
        nickname = in.readString();
        thumbLarge = in.readString();
        discount = in.readInt();
        commentNum = in.readInt();
        thumbMedium = in.readString();
        headerUrl = in.readString();
        price = in.readInt();
        likeNum = in.readInt();
        isLike = in.readByte() != 0;
        audioLength = in.readInt();
        thumb = in.readString();
        favoriteNum = in.readInt();
    }

    public static final Creator<NppBean> CREATOR = new Creator<NppBean>() {
        @Override
        public NppBean createFromParcel(Parcel in) {
            return new NppBean(in);
        }

        @Override
        public NppBean[] newArray(int size) {
            return new NppBean[size];
        }
    };

    public void setBackgroundUrl(String backgroundUrl) {
        this.backgroundUrl = backgroundUrl;
    }

    public String getBackgroundUrl() {
        return this.backgroundUrl;
    }

    public void setPptId(int pptId) {
        this.pptId = pptId;
    }

    public int getPptId() {
        return this.pptId;
    }

    public void setNppId(int nppId) {
        this.nppId = nppId;
    }

    public int getNppId() {
        return this.nppId;
    }

    public void setAudioSize(int audioSize) {
        this.audioSize = audioSize;
    }

    public int getAudioSize() {
        return this.audioSize;
    }

    public void setPlayNum(int playNum) {
        this.playNum = playNum;
    }

    public int getPlayNum() {
        return this.playNum;
    }

    public void setHtmlSize(int htmlSize) {
        this.htmlSize = htmlSize;
    }

    public int getHtmlSize() {
        return this.htmlSize;
    }

    public void setAudioUrl(String audioUrl) {
        this.audioUrl = audioUrl;
    }

    public String getAudioUrl() {
        return this.audioUrl;
    }

    public void setShareNum(int shareNum) {
        this.shareNum = shareNum;
    }

    public int getShareNum() {
        return this.shareNum;
    }

    public void setHtmlUrl(String htmlUrl) {
        this.htmlUrl = htmlUrl;
    }

    public String getHtmlUrl() {
        return this.htmlUrl;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getTitle() {
        return this.title;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getDescription() {
        return this.description;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public int getUserId() {
        return this.userId;
    }

    public void setFirstClassCategory(String firstClassCategory) {
        this.firstClassCategory = firstClassCategory;
    }

    public String getFirstClassCategory() {
        return this.firstClassCategory;
    }

    public void setPageAmount(int pageAmount) {
        this.pageAmount = pageAmount;
    }

    public int getPageAmount() {
        return this.pageAmount;
    }

    public void setAudioSizeMp3(int audioSizeMp3) {
        this.audioSizeMp3 = audioSizeMp3;
    }

    public int getAudioSizeMp3() {
        return this.audioSizeMp3;
    }

    public void setUploadTime(long uploadTime) {
        this.uploadTime = uploadTime;
    }

    public long getUploadTime() {
        return this.uploadTime;
    }

    public void setImageAmount(int imageAmount) {
        this.imageAmount = imageAmount;
    }

    public int getImageAmount() {
        return this.imageAmount;
    }

    public void setSignature(String signature) {
        this.signature = signature;
    }

    public String getSignature() {
        return this.signature;
    }

    public void setAudioUrlMp3(String audioUrlMp3) {
        this.audioUrlMp3 = audioUrlMp3;
    }

    public String getAudioUrlMp3() {
        return this.audioUrlMp3;
    }

    public void setPrivateKey(String privateKey) {
        this.privateKey = privateKey;
    }

    public String getPrivateKey() {
        return this.privateKey;
    }

    public void setAlbumId(int albumId) {
        this.albumId = albumId;
    }

    public int getAlbumId() {
        return this.albumId;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getNickname() {
        return this.nickname;
    }

    public void setThumbLarge(String thumbLarge) {
        this.thumbLarge = thumbLarge;
    }

    public String getThumbLarge() {
        return this.thumbLarge;
    }

    public void setDiscount(int discount) {
        this.discount = discount;
    }

    public int getDiscount() {
        return this.discount;
    }

    public void setCommentNum(int commentNum) {
        this.commentNum = commentNum;
    }

    public int getCommentNum() {
        return this.commentNum;
    }

    public void setThumbMedium(String thumbMedium) {
        this.thumbMedium = thumbMedium;
    }

    public String getThumbMedium() {
        return this.thumbMedium;
    }

    public void setHeaderUrl(String headerUrl) {
        this.headerUrl = headerUrl;
    }

    public String getHeaderUrl() {
        return this.headerUrl;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public int getPrice() {
        return this.price;
    }

    public void setLikeNum(int likeNum) {
        this.likeNum = likeNum;
    }

    public int getLikeNum() {
        return this.likeNum;
    }

    public void setIsLike(boolean isLike) {
        this.isLike = isLike;
    }

    public boolean getIsLike() {
        return this.isLike;
    }

    public void setAudioLength(int audioLength) {
        this.audioLength = audioLength;
    }

    public int getAudioLength() {
        return this.audioLength;
    }

    public void setThumb(String thumb) {
        this.thumb = thumb;
    }

    public String getThumb() {
        return this.thumb;
    }

    public void setFavoriteNum(int favoriteNum) {
        this.favoriteNum = favoriteNum;
    }

    public int getFavoriteNum() {
        return this.favoriteNum;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeLong(createTime);
        parcel.writeString(actionList);
        parcel.writeByte((byte) (deleted ? 1 : 0));
        parcel.writeString(backgroundUrl);
        parcel.writeInt(pptId);
        parcel.writeInt(nppId);
        parcel.writeInt(audioSize);
        parcel.writeInt(playNum);
        parcel.writeInt(htmlSize);
        parcel.writeString(audioUrl);
        parcel.writeInt(shareNum);
        parcel.writeString(htmlUrl);
        parcel.writeString(title);
        parcel.writeString(description);
        parcel.writeInt(userId);
        parcel.writeString(firstClassCategory);
        parcel.writeInt(pageAmount);
        parcel.writeInt(audioSizeMp3);
        parcel.writeLong(uploadTime);
        parcel.writeInt(imageAmount);
        parcel.writeString(signature);
        parcel.writeString(audioUrlMp3);
        parcel.writeString(privateKey);
        parcel.writeInt(albumId);
        parcel.writeString(nickname);
        parcel.writeString(thumbLarge);
        parcel.writeInt(discount);
        parcel.writeInt(commentNum);
        parcel.writeString(thumbMedium);
        parcel.writeString(headerUrl);
        parcel.writeInt(price);
        parcel.writeInt(likeNum);
        parcel.writeByte((byte) (isLike ? 1 : 0));
        parcel.writeInt(audioLength);
        parcel.writeString(thumb);
        parcel.writeInt(favoriteNum);
    }
}
